home *** CD-ROM | disk | FTP | other *** search
- Path: ix.netcom.com!netnews
- From: jmanson@ix.netcom.com(The MadMan )
- Newsgroups: comp.programming,alt.msdos.programmer,comp.lang.c++
- Subject: Re: How to detect HD
- Date: 24 Jan 1996 10:37:03 GMT
- Organization: Netcom
- Message-ID: <4e524f$roo@reader2.ix.netcom.com>
- References: <4d5s19$m7l@nosy.bart.nl> <4de9g4$sc6@hades.rz.uni-sb.de> <4dh3tt$5lu@neptune.cs.trinity.edu> <4dk51e$c6d@maureen.teleport.com>
- NNTP-Posting-Host: sdx-ca11-16.ix.netcom.com
- X-NETCOM-Date: Wed Jan 24 2:37:03 AM PST 1996
-
- In <4dk51e$c6d@maureen.teleport.com> craigl@teleport.com (Craig
- Lovegren) writes:
-
- <useless junk deleted>
-
- >All kidding aside, why not check the multi-plexer. Ask it to return
- the
- >number of CD-ROM drives installed. If it returns more than zero then
- it
- >should tell you what the name of the first drive is. For example, if
- I
- >had 2 hard-drives and at least one CD drive it would tell you, the
- first
- >CD is E:... this would mean that the last writeable drive would be E
- - 1
- >or D:... you think?
-
- The is not totally correct. MSCDEX can be told to put the CD at a
- curtain drive letter, for example J: and you certainly can't have 7
- HDs. Also, device drivers loaded from CONFIG.SYS can take some drive
- letters and put the count off.
-
- >
- >Or... use a DOS function to return the number of bytes available... if
- it
- >is -1 there was a problem reading the drive, either CD or
- non-existing.
- >
- >--
- >Real Life: Craig R. Lovegren
- >CyberLife: craigl@teleport.com
-
- Later, Jon
-
-